﻿<%@ Page Title="Home Page" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<html>
<head>
<style>
    dt { float: left; font-weight: bold; margin-right: 5px;}
</style>
</head>
<body>
<form runat="server">
    <h1>Limpet Demo Page</h1>
    <limpet:LimpetNode runat="server" id="uxLimpet" />

    <p>
    Assuming you've set everything up correctly, you'll need to hit this page twice for the Limpet 
    icon to appear.
    </p>
    <p>
    Based on the demo site values, your site configuration in Limpet should look like this:
    <dl>
        <dt>Base URL (regex): </dt><dd>http://<%= Request.Url.Host %>(:\d+)?(/.*)?$ (note: this should match anything at your host with or without a port)</dd>
        <dt>Cookie name: </dt><dd><%= LimpetManager.Config.CookieName %></dd>
        <dt>Encryption key: </dt><dd><%= LimpetManager.Config.Base64AesKey %></dd>
    </dl>
    </p>

    <p>
    Enter a session value key/value pair to test the session module.
    </p>
    <dl>
        <dt>Key</dt>
        <dd><asp:TextBox runat="server" ID="uxKey"></asp:TextBox></dd>
        <dt>Value</dt>
        <dd><asp:TextBox runat="server" ID="uxValue"></asp:TextBox></dd>
        <dt><asp:Button runat="server" ID="uxAddVar" Text="Add session var" OnClick="uxAddVar_Click" /></dt>
        <dd></dd>
    </dl>
</form>
</body>
</html>